package com.onstar.cn.map.common;

import java.io.Serializable;

public class PoiItemInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long threadId;
	private int id;
	private String title;
	private String nickName;
	private String address;
	private String telphone;
	private double latitude;
	private double longitude;
	private String typeDes;
	private String cityCode;
	private String webSite;
	private boolean isDiscountInfo;
	private boolean isGroupBuy;
	private boolean currentLocationTag = false;
	private String province;


	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	private int distance;

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getDistance() {
		return distance;
	}

	public void setDistance(int distance) {
		this.distance = distance;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getTypeDes() {
		return typeDes;
	}

	public void setTypeDes(String typeDes) {
		this.typeDes = typeDes;
	}

	/**
	 * @Deprecated will be replaced getCityCode.
	 * @return
	 */
	public String getCityName() {
		return cityCode;
	}

	/**
	 * @Deprecated will be replaced getCityCode.
	 */
	public void setCityName(String cityName) {
		this.cityCode = cityName;
	}

	public boolean isCurrentLocationTag() {
		return currentLocationTag;
	}

	public void setCurrentLocationTag(boolean currentLocationTag) {
		this.currentLocationTag = currentLocationTag;
	}

	/**
	 * @return the threadId
	 */
	public long getThreadId() {
		return threadId;
	}

	/**
	 * @param threadId
	 *            the threadId to set
	 */
	public void setThreadId(long threadId) {
		this.threadId = threadId;
	}

	/**
	 * @return the cityCode
	 */
	public String getCityCode() {
		return cityCode;
	}

	/**
	 * @param cityCode
	 *            the cityCode to set
	 */
	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	/**
	 * @return the webSite
	 */
	public String getWebSite() {
		return webSite;
	}

	/**
	 * @param webSite
	 *            the webSite to set
	 */
	public void setWebSite(String webSite) {
		this.webSite = webSite;
	}

	/**
	 * @return the isDiscountInfo
	 */
	public boolean isDiscountInfo() {
		return isDiscountInfo;
	}

	/**
	 * @param isDiscountInfo
	 *            the isDiscountInfo to set
	 */
	public void setDiscountInfo(boolean isDiscountInfo) {
		this.isDiscountInfo = isDiscountInfo;
	}

	/**
	 * @return the isGroupBuy
	 */
	public boolean isGroupBuy() {
		return isGroupBuy;
	}

	/**
	 * @param isGroupBuy
	 *            the isGroupBuy to set
	 */
	public void setGroupBuy(boolean isGroupBuy) {
		this.isGroupBuy = isGroupBuy;
	}


	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public static PoiItemInfo cloneNewOne(PoiItemInfo poiItemInfo) {
		PoiItemInfo pii = new PoiItemInfo();
		pii.setCityName(poiItemInfo.getCityName());
		pii.setCurrentLocationTag(poiItemInfo.isCurrentLocationTag());
		pii.setId(poiItemInfo.getId());// TODO
		pii.setLatitude(poiItemInfo.getLatitude());
		pii.setLongitude(poiItemInfo.getLongitude());
		pii.setNickName(poiItemInfo.getNickName());
		pii.setTelphone(poiItemInfo.getTelphone());
		pii.setTitle(poiItemInfo.getTitle());
		pii.setTypeDes(poiItemInfo.getTypeDes());
		pii.setAddress(poiItemInfo.getAddress());
		return pii;
	}

}
